<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Banner extends Model
{
    protected $table='banner';
    protected $primaryKey='banner_id';
    protected $fillable = [
      'type','img','detail'
    ];
    protected $hidden=[
        'img',
    ];
    public function my_img()
    {
        return $this->hasOne(Pictures::class,'pic_id','img');
    }


}
